<?php

/**
 * Controller is the customized base controller class.
 * All controller classes for this application should extend from this base class.
 */
class TiiActirecord extends CActiveRecord {

    public function fetchDropdown($values){
        if(count($values) > 0){
            $data = array();
            foreach($values as  $val){
                $data[$val->id] = $val->name;
            }
            return $data;
        }
        return false;
    }
    
}